
package com.ksm.version.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;

import com.ksm.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.io.Serializable;


@Getter
@Setter

@NoArgsConstructor
public class LocalStorage extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -4236621465133549220L;

    private Long id;


    private String realName;


    private String suffix;


    private String path;

    private String  abbreviation;


    private String type;


    private String size;

    public LocalStorage(String realName,String abbreviation , String suffix, String path) {
        this.realName = realName;
        this.abbreviation=abbreviation;
        this.suffix = suffix;
        this.path = path;


    }

    public void copy(LocalStorage source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
